package com.song.composejoke;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.compose.ui.platform.ComposeView;

public class WebActivity2 extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.web);
        String title = getIntent().getStringExtra("title");
        String url = getIntent().getStringExtra("url");

        TextView tvTitle = findViewById(R.id.tvTitle);
        WebView webView = findViewById(R.id.webView);

        tvTitle.setText(title);
        webView.loadUrl(url);

        ComposeView composeView = findViewById(R.id.composeView);
    }
}